import request from '@/utils/request'

/** 获取部门信息的模块
 *
 * @param {*} id 点击的哪个部门的id
 * @returns
 */
export const reqGetDepartDetail = id => {
  return request({
    url: `/company/department/${id}`
  })
}

/**
 *
 * @param {*} data 编辑部门
 * @returns
 */
export const reqUpdateDepartments = data => {
  return request({
    url: `/company/department/${data.id}`,
    method: 'put',
    data
  })
}

